Optimal. Leaf size=202 \[ -\frac {a^2}{d (c+d x)}-\frac {2 a b \left (F^{e g+f g x}\right )^n}{d (c+d x)}-\frac {b^2 \left (F^{e g+f g x}\right )^{2 n}}{d (c+d x)}+\frac {2 a b f F^{\left (e-\frac {c f}{d}\right ) g n-g n (e+f x)} \left (F^{e g+f g x}\right )^n g n \text {Ei}\left (\frac {f g n (c+d x) \log (F)}{d}\right ) \log (F)}{d^2}+\frac {2 b^2 f F^{2 \left (e-\frac {c f}{d}\right ) g n-2 g n (e+f x)} \left (F^{e g+f g x}\right )^{2 n} g n \text {Ei}\left (\frac {2 f g n (c+d x) \log (F)}{d}\right ) \log (F)}{d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.25, antiderivative size = 202, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {2214, 2208,
2213, 2209} \begin {gather*} -\frac {a^2}{d (c+d x)}+\frac {2 a b f g n \log (F) \left (F^{e g+f g x}\right )^n F^{g n \left (e-\frac {c f}{d}\right )-g n (e+f x)} \text {Ei}\left (\frac {f g n (c+d x) \log (F)}{d}\right )}{d^2}-\frac {2 a b \left (F^{e g+f g x}\right )^n}{d (c+d x)}+\frac {2 b^2 f g n \log (F) \left (F^{e g+f g x}\right )^{2 n} F^{2 g n \left (e-\frac {c f}{d}\right )-2 g n (e+f x)} \text {Ei}\left (\frac {2 f g n (c+d x) \log (F)}{d}\right )}{d^2}-\frac {b^2 \left (F^{e g+f g x}\right )^{2 n}}{d (c+d x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2208
Rule 2209
Rule 2213
Rule 2214
Rubi steps
\begin {align*} \int \frac {\left (a+b \left (F^{g (e+f x)}\right )^n\right )^2}{(c+d x)^2} \, dx &=\int \left (\frac {a^2}{(c+d x)^2}+\frac {2 a b \left (F^{e g+f g x}\right )^n}{(c+d x)^2}+\frac {b^2 \left (F^{e g+f g x}\right )^{2 n}}{(c+d x)^2}\right ) \, dx\\ &=-\frac {a^2}{d (c+d x)}+(2 a b) \int \frac {\left (F^{e g+f g x}\right )^n}{(c+d x)^2} \, dx+b^2 \int \frac {\left (F^{e g+f g x}\right )^{2 n}}{(c+d x)^2} \, dx\\ &=-\frac {a^2}{d (c+d x)}-\frac {2 a b \left (F^{e g+f g x}\right )^n}{d (c+d x)}-\frac {b^2 \left (F^{e g+f g x}\right )^{2 n}}{d (c+d x)}+\frac {(2 a b f g n \log (F)) \int \frac {\left (F^{e g+f g x}\right )^n}{c+d x} \, dx}{d}+\frac {\left (2 b^2 f g n \log (F)\right ) \int \frac {\left (F^{e g+f g x}\right )^{2 n}}{c+d x} \, dx}{d}\\ &=-\frac {a^2}{d (c+d x)}-\frac {2 a b \left (F^{e g+f g x}\right )^n}{d (c+d x)}-\frac {b^2 \left (F^{e g+f g x}\right )^{2 n}}{d (c+d x)}+\frac {\left (2 a b f F^{-n (e g+f g x)} \left (F^{e g+f g x}\right )^n g n \log (F)\right ) \int \frac {F^{n (e g+f g x)}}{c+d x} \, dx}{d}+\frac {\left (2 b^2 f F^{-2 n (e g+f g x)} \left (F^{e g+f g x}\right )^{2 n} g n \log (F)\right ) \int \frac {F^{2 n (e g+f g x)}}{c+d x} \, dx}{d}\\ &=-\frac {a^2}{d (c+d x)}-\frac {2 a b \left (F^{e g+f g x}\right )^n}{d (c+d x)}-\frac {b^2 \left (F^{e g+f g x}\right )^{2 n}}{d (c+d x)}+\frac {2 a b f F^{\left (e-\frac {c f}{d}\right ) g n-g n (e+f x)} \left (F^{e g+f g x}\right )^n g n \text {Ei}\left (\frac {f g n (c+d x) \log (F)}{d}\right ) \log (F)}{d^2}+\frac {2 b^2 f F^{2 \left (e-\frac {c f}{d}\right ) g n-2 g n (e+f x)} \left (F^{e g+f g x}\right )^{2 n} g n \text {Ei}\left (\frac {2 f g n (c+d x) \log (F)}{d}\right ) \log (F)}{d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.60, size = 136, normalized size = 0.67 \begin {gather*} \frac {-\frac {d \left (a+b \left (F^{g (e+f x)}\right )^n\right )^2}{c+d x}+2 a b f F^{-\frac {f g n (c+d x)}{d}} \left (F^{g (e+f x)}\right )^n g n \text {Ei}\left (\frac {f g n (c+d x) \log (F)}{d}\right ) \log (F)+2 b^2 f F^{-\frac {2 f g n (c+d x)}{d}} \left (F^{g (e+f x)}\right )^{2 n} g n \text {Ei}\left (\frac {2 f g n (c+d x) \log (F)}{d}\right ) \log (F)}{d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {\left (a +b \left (F^{g \left (f x +e \right )}\right )^{n}\right )^{2}}{\left (d x +c \right )^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 183, normalized size = 0.91 \begin {gather*} -\frac {2 \, F^{f g n x + g n e} a b d + F^{2 \, f g n x + 2 \, g n e} b^{2} d + a^{2} d - \frac {2 \, {\left (b^{2} d f g n x + b^{2} c f g n\right )} {\rm Ei}\left (\frac {2 \, {\left (d f g n x + c f g n\right )} \log \left (F\right )}{d}\right ) \log \left (F\right )}{F^{\frac {2 \, {\left (c f g n - d g n e\right )}}{d}}} - \frac {2 \, {\left (a b d f g n x + a b c f g n\right )} {\rm Ei}\left (\frac {{\left (d f g n x + c f g n\right )} \log \left (F\right )}{d}\right ) \log \left (F\right )}{F^{\frac {c f g n - d g n e}{d}}}}{d^{3} x + c d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \left (F^{e g} F^{f g x}\right )^{n}\right )^{2}}{\left (c + d x\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+b\,{\left (F^{g\,\left (e+f\,x\right )}\right )}^n\right )}^2}{{\left (c+d\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________